package com.bionic.ce.beans;

import java.io.Serializable;

public class Systemacc implements Serializable {

    protected Integer systemaccId;
    protected Double amount;
    protected String status;
    protected Integer userId;
    protected String currency;

    public Systemacc() {
    }

    public Systemacc(Double amount, String status, String currency, Integer userId) {
        super();
        this.amount = amount;
        this.status = status;
        this.currency = currency;
        this.userId = userId;

    }

    public Integer getSystemaccId() {
        return systemaccId;
    }

    public void setSystemaccId(int systemaccId) {
        this.systemaccId = systemaccId;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "Systemacc [systemaccId=" + systemaccId + ", amount=" + amount
                + ", status=" + status + ", user=" + userId + ", currency=" + currency + "]";
    }

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		long temp;
		temp = Double.doubleToLongBits(amount);
		result = prime * result + (int) (temp ^ (temp >>> 32));
		result = prime * result
				+ ((currency == null) ? 0 : currency.hashCode());
		result = prime * result + ((status == null) ? 0 : status.hashCode());
		result = prime * result + systemaccId;
		result = prime * result + ((userId == null) ? 0 : userId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (!(obj instanceof Systemacc))
			return false;
		Systemacc other = (Systemacc) obj;
		if (Double.doubleToLongBits(amount) != Double
				.doubleToLongBits(other.amount))
			return false;
		if (currency == null) {
			if (other.currency != null)
				return false;
		} else if (!currency.equals(other.currency))
			return false;
		if (status == null) {
			if (other.status != null)
				return false;
		} else if (!status.equals(other.status))
			return false;
		if (systemaccId != other.systemaccId)
			return false;
		if (userId == null) {
			if (other.userId != null)
				return false;
		} else if (!userId.equals(other.userId))
			return false;
		return true;
	}
    
    
}
